﻿using Microsoft.VisualStudio.TestTools.UITesting;

namespace TestExtensions
{
    public static class InternetExplorerFactory
    {
        public static BrowserWindow Open(string url = "")
        {
            StartMenu.Run("iexplore", url);
            return new UISearch()
                .Where(UITestControl.PropertyNames.ClassName).Equals("IEFrame")
                .Find<BrowserWindow>();
        }
    }
}